﻿using System;
using System.Collections.Generic;
using System.Linq;
using DevExpress.XtraEditors;
using System.Windows.Forms;

namespace YJY_DMZS.Common
{
    /// <summary>
    /// 公用类
    /// </summary>
    public class Common
    {
        /// <summary>
        /// 获取单据编号
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public static string GetOrderCode(DMZS.Model.DlyndxOrder.OrderType type)
        {
            var bll = new DMZS.BLL.Common();
            string code;

            try
            {
                code = bll.GetCode(type);
            }
            catch
            {
                return null;
            }

            return code;
        }

       
    }
}
